home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 January: Mac OS SDK / Dev.CD Jan 00 SDK1.toast / Development Kits / Mac OS / Multiprocessing 2.0 SDK / Sample Code / CloseViewMP ƒ / CloseViewMP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-03  |  1.3 KB  |  65 lines  |  [TEXT/CWIE]

  1. /**\
  2. |**|    CloseViewMP.h
  3. \**/
  4.  
  5. #define SMP_TEST 0
  6.  
  7. #include <Types.h>
  8. #include <Memory.h>
  9. #include <Quickdraw.h>
  10. #include <Fonts.h>
  11. #include <fp.h>
  12. #include <Events.h>
  13. #include <Menus.h>
  14. #include <Windows.h>
  15. #include <TextEdit.h>
  16. #include <Dialogs.h>
  17. #include <OSUtils.h>
  18. #include <ToolUtils.h>
  19. #include <SegLoad.h>
  20. #include <Sound.h>
  21.  
  22. #include "Multiprocessing.h"
  23.  
  24. // Constants & enums
  25.  
  26. enum
  27. {
  28.     mAppleMenu = 128,
  29.         iAboutBox = 1,
  30.     mFileMenu = 129,
  31.         iQuit = 1,
  32.     mMagMenu = 130,
  33.     mWeightMenu = 131
  34. };
  35.  
  36. #define kBallWidth        20
  37. #define kBallHeight        20
  38.  
  39. #define kTextSize        8        // Size of text in each ball
  40. #define kNumBalls        64        // only used for multi-ball
  41.  
  42. // external globals
  43.  
  44. extern UInt32        gMag;
  45.  
  46. // exported function prototypes
  47. OSStatus CVMP_Init(UInt32 pMag);
  48. extern void CVMP_Term(void);
  49. extern void CVMP_DoNull(void);
  50. extern void CVMP_DoClick(const EventRecord *pEventPtr);
  51. extern UInt16 CVMP_SetMag(UInt16 pMag);
  52. extern UInt16 CVMP_GetMag(void);
  53. extern void CVMP_SetWeight(UInt16 pIndex);
  54. extern void CVMP_SetMidPoint(Point pPoint);
  55. extern void CVMP_Reset(void);
  56. extern void CVMP_Update(void);
  57. extern Boolean CVMP_Pause(Boolean pPaused);
  58.  
  59. // µApp externals
  60. extern Boolean        gInBackGround;
  61. extern WindowPtr    gWindowPtr;
  62. extern Rect            gWindowRect;
  63. extern WindowPtr    gWindowPtr;
  64. extern Rect         gMenuRect;
  65.